<html  lang="en"  xmlns:th="http://www.thymeleaf.org" >
<!-- 编辑学校地址详情 -->
<head th:include="frame/fm/res :: headerTableCss">
    <meta charset="UTF-8" />
</head>

<head th:include="frame/fm/res :: uploadCSS"/>

<script th:inline="JavaScript">
        var treeId = [[${treeId}]];
        var parentId = [[${parentId}]];
        var isParent = [[${isParent}]];
        var treeLevel = [[${treeLevel}]];
    </script>

    <body>
    <!--/Preloader-->
    <div class="page-wrapper">
        <div class="container-fluid">
            <span th:replace="frame/fm/res :: breadcrumb"></span>
            <div class="pills-struct">
                <ul role="tablist" class="nav nav-pills" id="myTabs_9">
                    <li class="active" role="presentation">
                        <a aria-expanded="true" data-toggle="tab" role="tab" id="orgInfo_tab" href="#orgInfo">
                            <i>基础信息</i>
                        </a>
                    </li>
                    <li class="" role="presentation" id="orgDescLi" style="display: none;">
                        <a aria-expanded="true" data-toggle="tab" role="tab" id="orgDesc_tab" href="#orgDesc">
                            <i>学校简介</i>
                        </a>
                    </li>
                    <li class="" role="presentation" id="orgLiveLi" style="display: none;">
                        <a aria-expanded="true" data-toggle="tab" role="tab" id="orgLive_tab" onclick="getLiveList();" href="#orgLive">
                            <i>学校直播</i>
                        </a>
                    </li>
                </ul>
                <div class="tab-content" id="myTabContent_9">
                    <div id="orgInfo" class="tab-pane fade active in" role="tabpanel">
                        <!-- Row -->
                        <div class="row">
                            <div class="col-md-12">
                                <div class="panel panel-default card-view">
                                    <div class="title-div">
                                        <div class="notice-title-div"><!--class + "has-error has-danger" 变红-->
                                            <label class="notic-title-lable">机构名称</label>
                                            <input type="hidden" id="ObjId"/>
                                            <input class="notice-title-input" id="orgName" value="新机构" placeholder="必填" required="" type="text"/>
                                        </div>
                                    </div>
                                    <div class="title-div">
                                        <div class="notice-title-div">
                                            <label class="notic-title-lable">学校地址:</label>
                                            <input class="notice-title-input" id="address" placeholder="必填" required="" type="text"/>
                                        </div>
                                    </div>
                                    <div class="title-div">
                                        <div class="notice-title-div">
                                            <label class="notic-title-lable">学校坐标:</label>
                                            <input class="notice-title-input" id="coordinate" placeholder="必填" required="" type="text"/>
                                        </div>
                                    </div>
                                    <div id="saveNoticeBtn" onclick="saveOrgDetail()">
                                        <button class="btn btn-primary btn-icon-anim btn-square btn-sm" style=" width: 120px;">
                                            <i class="icon-heart-com"></i>
                                        </button>
                                    </div>
                                </div>

                            </div>
                        </div>
                        <!-- /Row -->
                    </div>
                    <div id="orgDesc" class="tab-pane fade" role="tabpanel">
                        <!-- Row -->
                        <div class="row">
                            <div class="col-md-12">
                                <div class="panel panel-default card-view">
                                    <!--头部，相册选择和格式选择-->
                                    <div id="bodyCollectionDiv">
                                        <!-- 公告图片start -->
                                        <div style="widht:600px;margin-top: 15px;"  class="case">
                                            <div class="upload" id='case1' data-num="10" data-delUrl="/org/delOrgAttach" action="/org/addOrgAttach"></div>
                                        </div>
                                        <div id="textareaContent" class="panel-wrapper collapse in"  style="width: 800px;">
                                            <div class="panel-body">
                                                <label class="notic-title-lable">学校简介:</label>
                                                <textarea class="tinymce" id="schoolContent"></textarea>
                                            </div>

                                        </div>
                                    </div>

                                    <div onclick="saveOrgDesc()">
                                        <button class="btn btn-primary btn-icon-anim btn-square btn-sm" id="orgDescBtn" style=" width: 120px;">
                                            <i class="icon-heart-com"></i>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- /Row -->
                    </div>
                    <div id="orgLive" class="tab-pane fade active in" role="tabpanel">
                        <!-- Row -->
                        <div class="row">
                            <div class="col-md-12">
                                <input type="hidden" id="liveId"/>
                                <div class="panel panel-default card-view">
                                    <div id="toolbar" class="row">
                                        <button onclick="addLive();"
                                                class="btn btn-primary btn-icon-anim btn-square btn-sm"
                                                style=" width: 80px;margin-left: 15px;"><i class="icon-plus-add"></i>
                                        </button>
                                    </div>
                                    <div class="panel-body">
                                        <div class="table-wrap">
                                            <table id="liveList" style="margin-top: 0px;"></table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- /Row -->
                    </div>
                </div>
            </div>
        </div>
    </div>
    <span th:include="frame/fm/res :: headerTableJs"></span>
    <span th:include="frame/fm/res :: uploadJs"></span>
    <script type="text/javascript" th:src="${application.staticUrl}+'base/org/js/addOrgDetail.js'"></script>
    </body>
</html>